package com.gimi.cloud.jimi.dao.dao.core;

import com.gimi.cloud.jimi.dao.myMapper.MyMapper;
import com.gimi.cloud.jimi.entity.core.TongDunEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by lixj on 2017/12/18.
 */
@Mapper
public interface TongDunDao extends MyMapper<TongDunEntity> {

    @Select("SELECT * FROM jimi_third_td WHERE user_id = #{userId} order by t_id desc LIMIT 1")
    TongDunEntity getTdByUserId(@Param(value = "userId")Integer userId);
}
